package entity; 

/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String password;
	private Integer deptid;
	private String deptname;
	private String sex;
	private Integer positionid;
	private String positionname;
	private Integer roleid;
	private String rolename;
	private Integer status;
	private String realname;

	// Constructors

	/** default constructor */
	public Users() {
	}
	public Users( String name, String password, Integer deptid,
			String deptname, String sex, Integer positionid,
			String positionname, Integer roleid, String rolename,
			Integer status, String realname) {
		super();
		this.name = name;
		this.password = password;
		this.deptid = deptid;
		this.deptname = deptname;
		this.sex = sex;
		this.positionid = positionid;
		this.positionname = positionname;
		this.roleid = roleid;
		this.rolename = rolename;
		this.status = status;
		this.realname = realname;
	}
	public Users(Integer id, String name, String password, Integer deptid,
			String deptname, String sex, Integer positionid,
			String positionname, Integer roleid, String rolename,
			Integer status,String realname) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.deptid = deptid;
		this.deptname = deptname;
		this.sex = sex;
		this.positionid = positionid;
		this.positionname = positionname;
		this.roleid = roleid;
		this.rolename = rolename;
		this.status = status;
		this.realname = realname;
	}

	/** minimal constructor */
	public Users(Integer id) {
		this.id = id;
	}

	

	// Property accessors

	public Users(Integer id, String name, String password, Integer deptid,
			String sex, Integer positionid, Integer roleid, Integer status,
		 String realname) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.deptid = deptid;
		this.sex = sex;
		this.positionid = positionid;
		this.roleid = roleid;
		this.status = status;
		this.realname = realname;
	}

	public Users(String name, String password, Integer deptid, String sex,
			Integer positionid, Integer roleid, Integer status, 
			String realname) {
		super();
		this.name = name;
		this.password = password;
		this.deptid = deptid;
		this.sex = sex;
		this.positionid = positionid;
		this.roleid = roleid;
		this.status = status;
		this.realname = realname;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getDeptid() {
		return this.deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getPositionid() {
		return this.positionid;
	}

	public void setPositionid(Integer positionid) {
		this.positionid = positionid;
	}

	public Integer getRoleid() {
		return this.roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public Users(String name, String password) {
		super();
		this.name = name;
		this.password = password;
	}

	public String getDeptname() {
		return deptname;
	}

	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}

	public String getPositionname() {
		return positionname;
	}

	public void setPositionname(String positionname) {
		this.positionname = positionname;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

}